<?php 


$str = '<img alt="img" src="http://img.booru.org/illusioncards//images/1/2a27e80e92b200e72c6382a68075a4e37b13ce1a.png" id="image" onclick="Note.toggle();" style="margin-right: 70px;"/><br />Posted on 2016-09-26 09:44:57 by';

$preg = "/<img alt=\"img\" src=\"(.+)\" id=\"image\" onclick=\"Note\.toggle\(\);\" style=\"margin-right: 70px;\"\/><br \/>Posted on (.+) by/";

$c = preg_match_all($preg, $str, $out);

var_dump($c,$out);















 ?>